package com.java0108;

import java.io.FileReader;

public class Java02 {
    public static void main(String[] args) {
        //(2)运行时异常

        int[] arr = {1,2};
        System.out.println(arr[2]);//数组下表溢出


        String str = null;
        System.out.println(str.equals("abc"));//空指针异常


//        FileReader fileReader = new FileReader("d:/ss.txt");编译异常,文件找不到
    }
}
